#pragma once
#include "ComboExtend.h"
#include "utility.h"

class CEmpSpecify :
	public WindowImplBase
{
public:
	CEmpSpecify();
	virtual ~CEmpSpecify();

	LPCTSTR GetWindowClassName() const { return _T("CEmpSpecify"); }
	virtual CDuiString GetSkinFile() { return _T("EmpSpeci.xml"); }
	virtual CDuiString GetSkinFolder() { return  _T("skin"); }
	virtual LRESULT ResponseDefaultKeyEvent(WPARAM wParam);
	virtual LRESULT OnNcActivate(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& bHandled);
	virtual void InitWindow();
	virtual CControlUI* CreateControl(LPCTSTR pstrClass);

	SYSTEMTIME& GetBeginDate();
	SYSTEMTIME& GetEndDate();
	stEmployee* GetEmployee();

	DUI_DECLARE_MESSAGE_MAP()
	void OnOKBtnClick(TNotifyUI& msg);
private:
	CComboExUI*		m_pCboEmp = nullptr;
	CLabelUI*		m_pLabTitle = nullptr;
	SYSTEMTIME		m_dtBebin;
	SYSTEMTIME		m_dtEnd;
	stEmployee*		m_pEmp=nullptr;
	std::vector<Emp_PTR>	m_EmpVec;
};

